
<div class="sidebar-block">
  <div class="sidebar-toc">
    {% set toctree = toctree(maxdepth=2, collapse=True, includehidden=True) %}
    {% if toctree %}
      {{ toctree }}
    {% else %}
      {{ toc }}
    {% endif %}
  </div>
</div>
